<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perldeprecation - list Perl deprecations - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perldeprecation">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perldeprecation.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perldeprecation">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perldeprecation">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perldeprecation">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perldeprecation">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perldeprecation">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perldeprecation">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perldeprecation">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perldeprecation">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perldeprecation">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perldeprecation">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perldeprecation">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perldeprecation">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perldeprecation">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perldeprecation">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perldeprecation">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perldeprecation">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perldeprecation">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perldeprecation">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perldeprecation">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perldeprecation">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perldeprecation">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perldeprecation">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perldeprecation">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perldeprecation">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perldeprecation">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perldeprecation">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perldeprecation">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perldeprecation">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perldeprecation">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perldeprecation">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perldeprecation">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perldeprecation">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perldeprecation">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perldeprecation">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perldeprecation">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perldeprecation">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perldeprecation">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perldeprecation">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perldeprecation">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perldeprecation">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perldeprecation">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perldeprecation">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perldeprecation">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perldeprecation">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perldeprecation">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perldeprecation">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perldeprecation">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perldeprecation">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perldeprecation">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perldeprecation">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perldeprecation">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perldeprecation">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perldeprecation">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perldeprecation">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perldeprecation">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perldeprecation">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perldeprecation">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perldeprecation">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perldeprecation">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perldeprecation">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perldeprecation">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perldeprecation">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perldeprecation">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perldeprecation">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perldeprecation">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perldeprecation">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perldeprecation">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perldeprecation">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perldeprecation">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perldeprecation">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perldeprecation">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perldeprecation">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perldeprecation">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perldeprecation">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perldeprecation">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perldeprecation">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perldeprecation">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perldeprecation">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perldeprecation">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perldeprecation">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perldeprecation.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perldeprecation">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perldeprecation">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perldeprecation">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perldeprecation">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perldeprecation">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perldeprecation">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perldeprecation">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perldeprecation">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perldeprecation">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perldeprecation">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perldeprecation">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perldeprecation">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perldeprecation">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perldeprecation">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perldeprecation">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perldeprecation">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perldeprecation">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perldeprecation">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perldeprecation">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perldeprecation">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perldeprecation">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perldeprecation">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perldeprecation">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perldeprecation">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perldeprecation">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perldeprecation">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perldeprecation">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perldeprecation">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perldeprecation">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perldeprecation">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perldeprecation">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perldeprecation">5.35.1</a>
          <a class="dropdown-item active" href="perldeprecation.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perldeprecation.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perldeprecation.html">perldeprecation</a>
          <div id="more">
            (<a href="perldeprecation.txt">source</a>,
            <a href="https://metacpan.org/pod/perldeprecation">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#DESCRIPTION">DESCRIPTION</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Perl-5.34">Perl 5.34</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Perl-5.32">Perl 5.32</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Constants-from-lexical-variables-potentially-modified-elsewhere">Constants from lexical variables potentially modified elsewhere</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Use-of-strings-with-code-points-over-0xFF-as-arguments-to-vec">Use of strings with code points over 0xFF as arguments to vec</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Use-of-code-points-over-0xFF-in-string-bitwise-operators">Use of code points over 0xFF in string bitwise operators</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#hostname()-doesn&#39;t-accept-any-arguments">hostname() doesn&#39;t accept any arguments</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Unescaped-left-braces-in-regular-expressions">Unescaped left braces in regular expressions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#In-XS-code,-use-of-various-macros-dealing-with-UTF-8.">In XS code, use of various macros dealing with UTF-8.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#File::Glob::glob()-was-removed">File::Glob::glob() was removed</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Perl-5.30">Perl 5.30</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#$*-is-no-longer-supported">$* is no longer supported</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#$%23-is-no-longer-supported">$# is no longer supported</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Assigning-non-zero-to-$%5B-is-fatal">Assigning non-zero to $[ is fatal</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#File::Glob::glob()-will-disappear">File::Glob::glob() will disappear</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Unescaped-left-braces-in-regular-expressions-(for-5.30)">Unescaped left braces in regular expressions (for 5.30)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Unqualified-dump()">Unqualified dump()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Using-my()-in-false-conditional.">Using my() in false conditional.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Reading/writing-bytes-from/to-:utf8-handles.">Reading/writing bytes from/to :utf8 handles.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Use-of-unassigned-code-point-or-non-standalone-grapheme-for-a-delimiter.">Use of unassigned code point or non-standalone grapheme for a delimiter.</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Perl-5.28">Perl 5.28</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Attributes-:locked-and-:unique">Attributes :locked and :unique</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Bare-here-document-terminators">Bare here-document terminators</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Setting-$/-to-a-reference-to-a-non-positive-integer">Setting $/ to a reference to a non-positive integer</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Limit-on-the-value-of-Unicode-code-points.">Limit on the value of Unicode code points.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Use-of-comma-less-variable-list-in-formats.">Use of comma-less variable list in formats.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Use-of-%5CN%7B%7D">Use of \N{}</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Using-the-same-symbol-to-open-a-filehandle-and-a-dirhandle">Using the same symbol to open a filehandle and a dirhandle</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#$%7B%5EENCODING%7D-is-no-longer-supported.">${^ENCODING} is no longer supported.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#B::OP::terse">B::OP::terse</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Use-of-inherited-AUTOLOAD-for-non-method-%25s::%25s()-is-no-longer-allowed">Use of inherited AUTOLOAD for non-method %s::%s() is no longer allowed</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Use-of-code-points-over-0xFF-in-string-bitwise-operators1">Use of code points over 0xFF in string bitwise operators</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#In-XS-code,-use-of-to_utf8_case()">In XS code, use of to_utf8_case()</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Perl-5.26">Perl 5.26</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#-libpods-in-Pod::Html">--libpods in Pod::Html</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#The-utilities-c2ph-and-pstruct">The utilities c2ph and pstruct</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Trapping-$SIG-%7B__DIE__%7D-other-than-during-program-exit.">Trapping $SIG {__DIE__} other than during program exit.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Malformed-UTF-8-string-in-%22%25s%22">Malformed UTF-8 string in &quot;%s&quot;</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Perl-5.24">Perl 5.24</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Use-of-*glob%7BFILEHANDLE%7D">Use of *glob{FILEHANDLE}</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Calling-POSIX::%25s()-is-deprecated">Calling POSIX::%s() is deprecated</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Perl-5.16">Perl 5.16</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#Use-of-%25s-on-a-handle-without-*-is-deprecated">Use of %s on a handle without * is deprecated</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perldeprecation.html#SEE-ALSO">SEE ALSO</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perldeprecation.html#NAME">#</a>NAME</h1>

<p>perldeprecation - list Perl deprecations</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perldeprecation.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>The purpose of this document is to document what has been deprecated in Perl, and by which version the deprecated feature will disappear, or, for already removed features, when it was removed.</p>

<p>This document will try to discuss what alternatives for the deprecated features are available.</p>

<p>The deprecated features will be grouped by the version of Perl in which they will be removed.</p>

<h2 id="Perl-5.34"><a class="permalink" href="perldeprecation.html#Perl-5.34">#</a><a id="Perl"></a>Perl 5.34</h2>

<p>There are no deprecations or fatalizations scheduled for Perl 5.34.</p>

<h2 id="Perl-5.32"><a class="permalink" href="perldeprecation.html#Perl-5.32">#</a><a id="Perl1"></a>Perl 5.32</h2>

<h3 id="Constants-from-lexical-variables-potentially-modified-elsewhere"><a class="permalink" href="perldeprecation.html#Constants-from-lexical-variables-potentially-modified-elsewhere">#</a><a id="Constants"></a>Constants from lexical variables potentially modified elsewhere</h3>

<p>You wrote something like</p>

<pre><code>my $var;
$sub = sub () { $var };</code></pre>

<p>but $var is referenced elsewhere and could be modified after the <code>sub</code> expression is evaluated. Either it is explicitly modified elsewhere (<code>$var = 3</code>) or it is passed to a subroutine or to an operator like <code>printf</code> or <code>map</code>, which may or may not modify the variable.</p>

<p>Traditionally, Perl has captured the value of the variable at that point and turned the subroutine into a constant eligible for inlining. In those cases where the variable can be modified elsewhere, this breaks the behavior of closures, in which the subroutine captures the variable itself, rather than its value, so future changes to the variable are reflected in the subroutine&#39;s return value.</p>

<p>If you intended for the subroutine to be eligible for inlining, then make sure the variable is not referenced elsewhere, possibly by copying it:</p>

<pre><code>my $var2 = $var;
$sub = sub () { $var2 };</code></pre>

<p>If you do want this subroutine to be a closure that reflects future changes to the variable that it closes over, add an explicit <code>return</code>:</p>

<pre><code>my $var;
$sub = sub () { return $var };</code></pre>

<p>This usage was deprecated and as of Perl 5.32 is no longer allowed.</p>

<h3 id="Use-of-strings-with-code-points-over-0xFF-as-arguments-to-vec"><a class="permalink" href="perldeprecation.html#Use-of-strings-with-code-points-over-0xFF-as-arguments-to-vec">#</a><a id="Use"></a>Use of strings with code points over 0xFF as arguments to <code>vec</code></h3>

<p><code>vec</code> views its string argument as a sequence of bits. A string containing a code point over 0xFF is nonsensical. This usage is deprecated in Perl 5.28, and was removed in Perl 5.32.</p>

<h3 id="Use-of-code-points-over-0xFF-in-string-bitwise-operators"><a class="permalink" href="perldeprecation.html#Use-of-code-points-over-0xFF-in-string-bitwise-operators">#</a><a id="Use1"></a>Use of code points over 0xFF in string bitwise operators</h3>

<p>The string bitwise operators, <code>&amp;</code>, <code>|</code>, <code>^</code>, and <code>~</code>, treat their operands as strings of bytes. As such, values above 0xFF are nonsensical. Some instances of these have been deprecated since Perl 5.24, and were made fatal in 5.28, but it turns out that in cases where the wide characters did not affect the end result, no deprecation notice was raised, and so remain legal. Now, all occurrences either are fatal or raise a deprecation warning, so that the remaining legal occurrences became fatal in 5.32.</p>

<p>An example of this is</p>

<pre><code class="plaintext">&quot;&quot; &amp; &quot;\x{100}&quot;</code></pre>

<p>The wide character is not used in the <code>&amp;</code> operation because the left operand is shorter. This now throws an exception.</p>

<h3 id="hostname()-doesn&#39;t-accept-any-arguments"><a class="permalink" href="perldeprecation.html#hostname()-doesn&#39;t-accept-any-arguments">#</a><a id="hostname"></a><a id="hostname-doesnt-accept-any-arguments"></a>hostname() doesn&#39;t accept any arguments</h3>

<p>The function <code>hostname()</code> in the <a href="./Sys::Hostname.html">Sys::Hostname</a> module has always been documented to be called with no arguments. Historically it has not enforced this, and has actually accepted and ignored any arguments. As a result, some users have got the mistaken impression that an argument does something useful. To avoid these bugs, the function is being made strict. Passing arguments was deprecated in Perl 5.28 and became fatal in Perl 5.32.</p>

<h3 id="Unescaped-left-braces-in-regular-expressions"><a class="permalink" href="perldeprecation.html#Unescaped-left-braces-in-regular-expressions">#</a><a id="Unescaped"></a>Unescaped left braces in regular expressions</h3>

<p>The simple rule to remember, if you want to match a literal <code>{</code> character (U+007B <code>LEFT CURLY BRACKET</code>) in a regular expression pattern, is to escape each literal instance of it in some way. Generally easiest is to precede it with a backslash, like <code>\{</code> or enclose it in square brackets (<code>[{]</code>). If the pattern delimiters are also braces, any matching right brace (<code>}</code>) should also be escaped to avoid confusing the parser, for example,</p>

<pre><code class="plaintext">qr{abc\{def\}ghi}</code></pre>

<p>Forcing literal <code>{</code> characters to be escaped will enable the Perl language to be extended in various ways in future releases. To avoid needlessly breaking existing code, the restriction is not enforced in contexts where there are unlikely to ever be extensions that could conflict with the use there of <code>{</code> as a literal. A non-deprecation warning that the left brace is being taken literally is raised in contexts where there could be confusion about it.</p>

<p>Literal uses of <code>{</code> were deprecated in Perl 5.20, and some uses of it started to give deprecation warnings since. These cases were made fatal in Perl 5.26. Due to an oversight, not all cases of a use of a literal <code>{</code> got a deprecation warning. Some cases started warning in Perl 5.26, and were made fatal in Perl 5.30. Other cases started in Perl 5.28, and were made fatal in 5.32.</p>

<h3 id="In-XS-code,-use-of-various-macros-dealing-with-UTF-8."><a class="permalink" href="perldeprecation.html#In-XS-code,-use-of-various-macros-dealing-with-UTF-8.">#</a><a id="In"></a><a id="In-XS-code-use-of-various-macros-dealing-with-UTF-8"></a>In XS code, use of various macros dealing with UTF-8.</h3>

<p>The macros below now require an extra parameter than in versions prior to Perl 5.32. The final parameter in each one is a pointer into the string supplied by the first parameter beyond which the input will not be read. This prevents potential reading beyond the end of the buffer. <code>isALPHANUMERIC_utf8</code>, <code>isASCII_utf8</code>, <code>isBLANK_utf8</code>, <code>isCNTRL_utf8</code>, <code>isDIGIT_utf8</code>, <code>isIDFIRST_utf8</code>, <code>isPSXSPC_utf8</code>, <code>isSPACE_utf8</code>, <code>isVERTWS_utf8</code>, <code>isWORDCHAR_utf8</code>, <code>isXDIGIT_utf8</code>, <code>isALPHANUMERIC_LC_utf8</code>, <code>isALPHA_LC_utf8</code>, <code>isASCII_LC_utf8</code>, <code>isBLANK_LC_utf8</code>, <code>isCNTRL_LC_utf8</code>, <code>isDIGIT_LC_utf8</code>, <code>isGRAPH_LC_utf8</code>, <code>isIDCONT_LC_utf8</code>, <code>isIDFIRST_LC_utf8</code>, <code>isLOWER_LC_utf8</code>, <code>isPRINT_LC_utf8</code>, <code>isPSXSPC_LC_utf8</code>, <code>isPUNCT_LC_utf8</code>, <code>isSPACE_LC_utf8</code>, <code>isUPPER_LC_utf8</code>, <code>isWORDCHAR_LC_utf8</code>, <code>isXDIGIT_LC_utf8</code>, <code>toFOLD_utf8</code>, <code>toLOWER_utf8</code>, <code>toTITLE_utf8</code>, and <code>toUPPER_utf8</code>.</p>

<p>Since Perl 5.26, this functionality with the extra parameter has been available by using a corresponding macro to each one of these, and whose name is formed by appending <code>_safe</code> to the base name. There is no change to the functionality of those. For example, <code>isDIGIT_utf8_safe</code> corresponds to <code>isDIGIT_utf8</code>, and both now behave identically. All are documented in <a href="perlapi.html#Character-case-changing">&quot;Character case changing&quot; in perlapi</a> and <a href="perlapi.html#Character-classification">&quot;Character classification&quot; in perlapi</a>.</p>

<p>This change was originally scheduled for 5.30, but was delayed until 5.32.</p>

<h3 id="File::Glob::glob()-was-removed"><a class="permalink" href="perldeprecation.html#File::Glob::glob()-was-removed">#</a><a id="File"></a><a id="File::Glob::glob-was-removed"></a><code>File::Glob::glob()</code> was removed</h3>

<p><code>File::Glob</code> has a function called <code>glob</code>, which just calls <code>bsd_glob</code>.</p>

<p><code>File::Glob::glob()</code> was deprecated in Perl 5.8. A deprecation message was issued from Perl 5.26 onwards, and the function has now disappeared in Perl 5.30.</p>

<p>Code using <code>File::Glob::glob()</code> should call <code>File::Glob::bsd_glob()</code> instead.</p>

<h2 id="Perl-5.30"><a class="permalink" href="perldeprecation.html#Perl-5.30">#</a><a id="Perl2"></a>Perl 5.30</h2>

<h3 id="$*-is-no-longer-supported"><a class="permalink" href="perldeprecation.html#$*-is-no-longer-supported">#</a><a id="is-no-longer-supported"></a><code>$*</code> is no longer supported</h3>

<p>Before Perl 5.10, setting <code>$*</code> to a true value globally enabled multi-line matching within a string. This relique from the past lost its special meaning in 5.10. Use of this variable will be a fatal error in Perl 5.30, freeing the variable up for a future special meaning.</p>

<p>To enable multiline matching one should use the <code>/m</code> regexp modifier (possibly in combination with <code>/s</code>). This can be set on a per match bases, or can be enabled per lexical scope (including a whole file) with <code>use re &#39;/m&#39;</code>.</p>

<h3 id="$#-is-no-longer-supported"><a class="permalink" href="perldeprecation.html#$%23-is-no-longer-supported">#</a><a id="is-no-longer-supported1"></a><code>$#</code> is no longer supported</h3>

<p>This variable used to have a special meaning -- it could be used to control how numbers were formatted when printed. This seldom used functionality was removed in Perl 5.10. In order to free up the variable for a future special meaning, its use will be a fatal error in Perl 5.30.</p>

<p>To specify how numbers are formatted when printed, one is advised to use <code>printf</code> or <code>sprintf</code> instead.</p>

<h3 id="Assigning-non-zero-to-$[-is-fatal"><a class="permalink" href="perldeprecation.html#Assigning-non-zero-to-$%5B-is-fatal">#</a><a id="Assigning"></a><a id="Assigning-non-zero-to-is-fatal"></a>Assigning non-zero to <code>$[</code> is fatal</h3>

<p>This variable (and the corresponding <code>array_base</code> feature and <a href="https://perldoc.perl.org/5.35.0/arybase">arybase</a> module) allowed changing the base for array and string indexing operations.</p>

<p>Setting this to a non-zero value has been deprecated since Perl 5.12 and throws a fatal error as of Perl 5.30.</p>

<h3 id="File::Glob::glob()-will-disappear"><a class="permalink" href="perldeprecation.html#File::Glob::glob()-will-disappear">#</a><a id="File1"></a><a id="File::Glob::glob-will-disappear"></a><code>File::Glob::glob()</code> will disappear</h3>

<p><code>File::Glob</code> has a function called <code>glob</code>, which just calls <code>bsd_glob</code>. However, its prototype is different from the prototype of <code>CORE::glob</code>, and hence, <code>File::Glob::glob</code> should not be used.</p>

<p><code>File::Glob::glob()</code> was deprecated in Perl 5.8. A deprecation message was issued from Perl 5.26 onwards, and the function will disappear in Perl 5.30.</p>

<p>Code using <code>File::Glob::glob()</code> should call <code>File::Glob::bsd_glob()</code> instead.</p>

<h3 id="Unescaped-left-braces-in-regular-expressions-(for-5.30)"><a class="permalink" href="perldeprecation.html#Unescaped-left-braces-in-regular-expressions-(for-5.30)">#</a><a id="Unescaped1"></a><a id="Unescaped-left-braces-in-regular-expressions-for-5.30"></a>Unescaped left braces in regular expressions (for 5.30)</h3>

<p>See <a href="perldeprecation.html#Unescaped-left-braces-in-regular-expressions">&quot;Unescaped left braces in regular expressions&quot;</a> above.</p>

<h3 id="Unqualified-dump()"><a class="permalink" href="perldeprecation.html#Unqualified-dump()">#</a><a id="Unqualified"></a><a id="Unqualified-dump"></a>Unqualified <code>dump()</code></h3>

<p>Use of <code>dump()</code> instead of <code>CORE::dump()</code> was deprecated in Perl 5.8, and an unqualified <code>dump()</code> will no longer be available in Perl 5.30.</p>

<p>See <a href="perlfunc.html#dump">&quot;dump&quot; in perlfunc</a>.</p>

<h3 id="Using-my()-in-false-conditional."><a class="permalink" href="perldeprecation.html#Using-my()-in-false-conditional.">#</a><a id="Using"></a><a id="Using-my-in-false-conditional"></a>Using my() in false conditional.</h3>

<p>There has been a long-standing bug in Perl that causes a lexical variable not to be cleared at scope exit when its declaration includes a false conditional. Some people have exploited this bug to achieve a kind of static variable. To allow us to fix this bug, people should not be relying on this behavior.</p>

<p>Instead, it&#39;s recommended one uses <code>state</code> variables to achieve the same effect:</p>

<pre><code>use 5.10.0;
sub count {state $counter; return ++ $counter}
say count ();    # Prints 1
say count ();    # Prints 2</code></pre>

<p><code>state</code> variables were introduced in Perl 5.10.</p>

<p>Alternatively, you can achieve a similar static effect by declaring the variable in a separate block outside the function, e.g.,</p>

<pre><code>sub f { my $x if 0; return $x++ }</code></pre>

<p>becomes</p>

<pre><code>{ my $x; sub f { return $x++ } }</code></pre>

<p>The use of <code>my()</code> in a false conditional has been deprecated in Perl 5.10, and became a fatal error in Perl 5.30.</p>

<h3 id="Reading/writing-bytes-from/to-:utf8-handles."><a class="permalink" href="perldeprecation.html#Reading/writing-bytes-from/to-:utf8-handles.">#</a><a id="Reading"></a><a id="Reading-writing-bytes-from-to-:utf8-handles"></a>Reading/writing bytes from/to :utf8 handles.</h3>

<p>The sysread(), recv(), syswrite() and send() operators are deprecated on handles that have the <code>:utf8</code> layer, either explicitly, or implicitly, eg., with the <code>:encoding(UTF-16LE)</code> layer.</p>

<p>Both sysread() and recv() currently use only the <code>:utf8</code> flag for the stream, ignoring the actual layers. Since sysread() and recv() do no UTF-8 validation they can end up creating invalidly encoded scalars.</p>

<p>Similarly, syswrite() and send() use only the <code>:utf8</code> flag, otherwise ignoring any layers. If the flag is set, both write the value UTF-8 encoded, even if the layer is some different encoding, such as the example above.</p>

<p>Ideally, all of these operators would completely ignore the <code>:utf8</code> state, working only with bytes, but this would result in silently breaking existing code. To avoid this a future version of perl will throw an exception when any of sysread(), recv(), syswrite() or send() are called on handle with the <code>:utf8</code> layer.</p>

<p>In Perl 5.30, it will no longer be possible to use sysread(), recv(), syswrite() or send() to read or send bytes from/to :utf8 handles.</p>

<h3 id="Use-of-unassigned-code-point-or-non-standalone-grapheme-for-a-delimiter."><a class="permalink" href="perldeprecation.html#Use-of-unassigned-code-point-or-non-standalone-grapheme-for-a-delimiter.">#</a><a id="Use2"></a><a id="Use-of-unassigned-code-point-or-non-standalone-grapheme-for-a-delimiter"></a>Use of unassigned code point or non-standalone grapheme for a delimiter.</h3>

<p>A grapheme is what appears to a native-speaker of a language to be a character. In Unicode (and hence Perl) a grapheme may actually be several adjacent characters that together form a complete grapheme. For example, there can be a base character, like &quot;R&quot; and an accent, like a circumflex &quot;^&quot;, that appear to be a single character when displayed, with the circumflex hovering over the &quot;R&quot;.</p>

<p>As of Perl 5.30, use of delimiters which are non-standalone graphemes is fatal, in order to move the language to be able to accept multi-character graphemes as delimiters.</p>

<p>Also, as of Perl 5.30, delimiters which are unassigned code points but that may someday become assigned are prohibited. Otherwise, code that works today would fail to compile if the currently unassigned delimiter ends up being something that isn&#39;t a stand-alone grapheme. Because Unicode is never going to assign <a href="perlunicode.html#Noncharacter-code-points">non-character code points</a>, nor <a href="perlunicode.html#Beyond-Unicode-code-points">code points that are above the legal Unicode maximum</a>, those can be delimiters.</p>

<h2 id="Perl-5.28"><a class="permalink" href="perldeprecation.html#Perl-5.28">#</a><a id="Perl3"></a>Perl 5.28</h2>

<h3 id="Attributes-:locked-and-:unique"><a class="permalink" href="perldeprecation.html#Attributes-:locked-and-:unique">#</a><a id="Attributes"></a>Attributes <code>:locked</code> and <code>:unique</code></h3>

<p>The attributes <code>:locked</code> (on code references) and <code>:unique</code> (on array, hash and scalar references) have had no effect since Perl 5.005 and Perl 5.8.8 respectively. Their use has been deprecated since.</p>

<p>As of Perl 5.28, these attributes are syntax errors. Since the attributes do not do anything, removing them from your code fixes the syntax error; and removing them will not influence the behaviour of your code.</p>

<h3 id="Bare-here-document-terminators"><a class="permalink" href="perldeprecation.html#Bare-here-document-terminators">#</a><a id="Bare"></a>Bare here-document terminators</h3>

<p>Perl has allowed you to use a bare here-document terminator to have the here-document end at the first empty line. This practise was deprecated in Perl 5.000; as of Perl 5.28, using a bare here-document terminator throws a fatal error.</p>

<p>You are encouraged to use the explicitly quoted form if you wish to use an empty line as the terminator of the here-document:</p>

<pre><code>print &lt;&lt;&quot;&quot;;
  Print this line.

# Previous blank line ends the here-document.</code></pre>

<h3 id="Setting-$/-to-a-reference-to-a-non-positive-integer"><a class="permalink" href="perldeprecation.html#Setting-$/-to-a-reference-to-a-non-positive-integer">#</a><a id="Setting"></a><a id="Setting-to-a-reference-to-a-non-positive-integer"></a>Setting $/ to a reference to a non-positive integer</h3>

<p>You assigned a reference to a scalar to <code>$/</code> where the referenced item is not a positive integer. In older perls this <b>appeared</b> to work the same as setting it to <code>undef</code> but was in fact internally different, less efficient and with very bad luck could have resulted in your file being split by a stringified form of the reference.</p>

<p>In Perl 5.20.0 this was changed so that it would be <b>exactly</b> the same as setting <code>$/</code> to undef, with the exception that this warning would be thrown.</p>

<p>As of Perl 5.28, setting <code>$/</code> to a reference of a non-positive integer throws a fatal error.</p>

<p>You are recommended to change your code to set <code>$/</code> to <code>undef</code> explicitly if you wish to slurp the file.</p>

<h3 id="Limit-on-the-value-of-Unicode-code-points."><a class="permalink" href="perldeprecation.html#Limit-on-the-value-of-Unicode-code-points.">#</a><a id="Limit"></a><a id="Limit-on-the-value-of-Unicode-code-points"></a>Limit on the value of Unicode code points.</h3>

<p>Unicode only allows code points up to 0x10FFFF, but Perl allows much larger ones. Up till Perl 5.28, it was allowed to use code points exceeding the maximum value of an integer (<code>IV_MAX</code>). However, that did break the perl interpreter in some constructs, including causing it to hang in a few cases. The known problem areas were in <code>tr///</code>, regular expression pattern matching using quantifiers, as quote delimiters in <code>q<i>X</i>...<i>X</i></code> (where <i>X</i> is the <code>chr()</code> of a large code point), and as the upper limits in loops.</p>

<p>The use of out of range code points was deprecated in Perl 5.24; as of Perl 5.28 using a code point exceeding <code>IV_MAX</code> throws a fatal error.</p>

<p>If your code is to run on various platforms, keep in mind that the upper limit depends on the platform. It is much larger on 64-bit word sizes than 32-bit ones. For 32-bit integers, <code>IV_MAX</code> equals <code>0x7FFFFFFF</code>, for 64-bit integers, <code>IV_MAX</code> equals <code>0x7FFFFFFFFFFFFFFF</code>.</p>

<h3 id="Use-of-comma-less-variable-list-in-formats."><a class="permalink" href="perldeprecation.html#Use-of-comma-less-variable-list-in-formats.">#</a><a id="Use3"></a><a id="Use-of-comma-less-variable-list-in-formats"></a>Use of comma-less variable list in formats.</h3>

<p>It was allowed to use a list of variables in a format, without separating them with commas. This usage has been deprecated for a long time, and as of Perl 5.28, this throws a fatal error.</p>

<h3 id="Use-of-\N{}"><a class="permalink" href="perldeprecation.html#Use-of-%5CN%7B%7D">#</a><a id="Use4"></a><a id="Use-of-N"></a>Use of <code>\N{}</code></h3>

<p>Use of <code>\N{}</code> with nothing between the braces was deprecated in Perl 5.24, and throws a fatal error as of Perl 5.28.</p>

<p>Since such a construct is equivalent to using an empty string, you are recommended to remove such <code>\N{}</code> constructs.</p>

<h3 id="Using-the-same-symbol-to-open-a-filehandle-and-a-dirhandle"><a class="permalink" href="perldeprecation.html#Using-the-same-symbol-to-open-a-filehandle-and-a-dirhandle">#</a><a id="Using1"></a>Using the same symbol to open a filehandle and a dirhandle</h3>

<p>It used to be legal to use <code>open()</code> to associate both a filehandle and a dirhandle to the same symbol (glob or scalar). This idiom is likely to be confusing, and it was deprecated in Perl 5.10.</p>

<p>Using the same symbol to <code>open()</code> a filehandle and a dirhandle throws a fatal error as of Perl 5.28.</p>

<p>You should be using two different symbols instead.</p>

<h3 id="${^ENCODING}-is-no-longer-supported."><a class="permalink" href="perldeprecation.html#$%7B%5EENCODING%7D-is-no-longer-supported.">#</a><a id="ENCODING-is-no-longer-supported"></a>${^ENCODING} is no longer supported.</h3>

<p>The special variable <code>${^ENCODING}</code> was used to implement the <code>encoding</code> pragma. Setting this variable to anything other than <code>undef</code> was deprecated in Perl 5.22. Full deprecation of the variable happened in Perl 5.25.3.</p>

<p>Setting this variable to anything other than an undefined value throws a fatal error as of Perl 5.28.</p>

<h3 id="B::OP::terse"><a class="permalink" href="perldeprecation.html#B::OP::terse">#</a><a id="B"></a><code>B::OP::terse</code></h3>

<p>This method, which just calls <code>B::Concise::b_terse</code>, has been deprecated, and disappeared in Perl 5.28. Please use <code>B::Concise</code> instead.</p>

<h3 id="Use-of-inherited-AUTOLOAD-for-non-method-%s::%s()-is-no-longer-allowed"><a class="permalink" href="perldeprecation.html#Use-of-inherited-AUTOLOAD-for-non-method-%25s::%25s()-is-no-longer-allowed">#</a><a id="Use5"></a><a id="Use-of-inherited-AUTOLOAD-for-non-method-s::-s-is-no-longer-allowed"></a>Use of inherited AUTOLOAD for non-method %s::%s() is no longer allowed</h3>

<p>As an (ahem) accidental feature, <code>AUTOLOAD</code> subroutines were looked up as methods (using the <code>@ISA</code> hierarchy) even when the subroutines to be autoloaded were called as plain functions (e.g. <code>Foo::bar()</code>), not as methods (e.g. <code>Foo-&gt;bar()</code> or <code>$obj-&gt;bar()</code>).</p>

<p>This bug was deprecated in Perl 5.004, has been rectified in Perl 5.28 by using method lookup only for methods&#39; <code>AUTOLOAD</code>s.</p>

<p>The simple rule is: Inheritance will not work when autoloading non-methods. The simple fix for old code is: In any module that used to depend on inheriting <code>AUTOLOAD</code> for non-methods from a base class named <code>BaseClass</code>, execute <code>*AUTOLOAD = \&amp;BaseClass::AUTOLOAD</code> during startup.</p>

<p>In code that currently says <code>use AutoLoader; @ISA = qw(AutoLoader);</code> you should remove AutoLoader from @ISA and change <code>use AutoLoader;</code> to <code>use AutoLoader &#39;AUTOLOAD&#39;;</code>.</p>

<h3 id="Use-of-code-points-over-0xFF-in-string-bitwise-operators1"><a class="permalink" href="perldeprecation.html#Use-of-code-points-over-0xFF-in-string-bitwise-operators1">#</a><a id="Use6"></a>Use of code points over 0xFF in string bitwise operators</h3>

<p>The string bitwise operators, <code>&amp;</code>, <code>|</code>, <code>^</code>, and <code>~</code>, treat their operands as strings of bytes. As such, values above 0xFF are nonsensical. Using such code points with these operators was deprecated in Perl 5.24, and is fatal as of Perl 5.28.</p>

<h3 id="In-XS-code,-use-of-to_utf8_case()"><a class="permalink" href="perldeprecation.html#In-XS-code,-use-of-to_utf8_case()">#</a><a id="In1"></a><a id="In-XS-code-use-of-to_utf8_case"></a>In XS code, use of <code>to_utf8_case()</code></h3>

<p>This function has been removed as of Perl 5.28; instead convert to call the appropriate one of: <a href="perlapi.html#toFOLD_utf8_safe"><code>toFOLD_utf8_safe</code></a>. <a href="perlapi.html#toLOWER_utf8_safe"><code>toLOWER_utf8_safe</code></a>, <a href="perlapi.html#toTITLE_utf8_safe"><code>toTITLE_utf8_safe</code></a>, or <a href="perlapi.html#toUPPER_utf8_safe"><code>toUPPER_utf8_safe</code></a>.</p>

<h2 id="Perl-5.26"><a class="permalink" href="perldeprecation.html#Perl-5.26">#</a><a id="Perl4"></a>Perl 5.26</h2>

<h3 id="-libpods-in-Pod::Html"><a class="permalink" href="perldeprecation.html#-libpods-in-Pod::Html">#</a><a id="libpods-in-Pod::Html"></a><code>--libpods</code> in <code>Pod::Html</code></h3>

<p>Since Perl 5.18, the option <code>--libpods</code> has been deprecated, and using this option did not do anything other than producing a warning.</p>

<p>The <code>--libpods</code> option is no longer recognized as of Perl 5.26.</p>

<h3 id="The-utilities-c2ph-and-pstruct"><a class="permalink" href="perldeprecation.html#The-utilities-c2ph-and-pstruct">#</a><a id="The"></a>The utilities <code>c2ph</code> and <code>pstruct</code></h3>

<p>These old, perl3-era utilities have been deprecated in favour of <code>h2xs</code> for a long time. As of Perl 5.26, they have been removed.</p>

<h3 id="Trapping-$SIG-{__DIE__}-other-than-during-program-exit."><a class="permalink" href="perldeprecation.html#Trapping-$SIG-%7B__DIE__%7D-other-than-during-program-exit.">#</a><a id="Trapping"></a><a id="Trapping-SIG-__DIE__-other-than-during-program-exit"></a>Trapping <code>$SIG {__DIE__}</code> other than during program exit.</h3>

<p>The <code>$SIG{__DIE__}</code> hook is called even inside an <code>eval()</code>. It was never intended to happen this way, but an implementation glitch made this possible. This used to be deprecated, as it allowed strange action at a distance like rewriting a pending exception in <code>$@</code>. Plans to rectify this have been scrapped, as users found that rewriting a pending exception is actually a useful feature, and not a bug.</p>

<p>Perl never issued a deprecation warning for this; the deprecation was by documentation policy only. But this deprecation has been lifted as of Perl 5.26.</p>

<h3 id="Malformed-UTF-8-string-in-&quot;%s&quot;"><a class="permalink" href="perldeprecation.html#Malformed-UTF-8-string-in-%22%25s%22">#</a><a id="Malformed"></a><a id="Malformed-UTF-8-string-in-s"></a>Malformed UTF-8 string in &quot;%s&quot;</h3>

<p>This message indicates a bug either in the Perl core or in XS code. Such code was trying to find out if a character, allegedly stored internally encoded as UTF-8, was of a given type, such as being punctuation or a digit. But the character was not encoded in legal UTF-8. The <code>%s</code> is replaced by a string that can be used by knowledgeable people to determine what the type being checked against was.</p>

<p>Passing malformed strings was deprecated in Perl 5.18, and became fatal in Perl 5.26.</p>

<h2 id="Perl-5.24"><a class="permalink" href="perldeprecation.html#Perl-5.24">#</a><a id="Perl5"></a>Perl 5.24</h2>

<h3 id="Use-of-*glob{FILEHANDLE}"><a class="permalink" href="perldeprecation.html#Use-of-*glob%7BFILEHANDLE%7D">#</a><a id="Use7"></a><a id="Use-of-glob-FILEHANDLE"></a>Use of <code>*glob{FILEHANDLE}</code></h3>

<p>The use of <code>*glob{FILEHANDLE}</code> was deprecated in Perl 5.8. The intention was to use <code>*glob{IO}</code> instead, for which <code>*glob{FILEHANDLE}</code> is an alias.</p>

<p>However, this feature was undeprecated in Perl 5.24.</p>

<h3 id="Calling-POSIX::%s()-is-deprecated"><a class="permalink" href="perldeprecation.html#Calling-POSIX::%25s()-is-deprecated">#</a><a id="Calling"></a><a id="Calling-POSIX::-s-is-deprecated"></a>Calling POSIX::%s() is deprecated</h3>

<p>The following functions in the <code>POSIX</code> module are no longer available: <code>isalnum</code>, <code>isalpha</code>, <code>iscntrl</code>, <code>isdigit</code>, <code>isgraph</code>, <code>islower</code>, <code>isprint</code>, <code>ispunct</code>, <code>isspace</code>, <code>isupper</code>, and <code>isxdigit</code>. The functions are buggy and don&#39;t work on UTF-8 encoded strings. See their entries in <a href="POSIX.html">POSIX</a> for more information.</p>

<p>The functions were deprecated in Perl 5.20, and removed in Perl 5.24.</p>

<h2 id="Perl-5.16"><a class="permalink" href="perldeprecation.html#Perl-5.16">#</a><a id="Perl6"></a>Perl 5.16</h2>

<h3 id="Use-of-%s-on-a-handle-without-*-is-deprecated"><a class="permalink" href="perldeprecation.html#Use-of-%25s-on-a-handle-without-*-is-deprecated">#</a><a id="Use8"></a><a id="Use-of-s-on-a-handle-without-is-deprecated"></a>Use of %s on a handle without * is deprecated</h3>

<p>It used to be possible to use <code>tie</code>, <code>tied</code> or <code>untie</code> on a scalar while the scalar holds a typeglob. This caused its filehandle to be tied. It left no way to tie the scalar itself when it held a typeglob, and no way to untie a scalar that had had a typeglob assigned to it.</p>

<p>This was deprecated in Perl 5.14, and the bug was fixed in Perl 5.16.</p>

<p>So now <code>tie $scalar</code> will always tie the scalar, not the handle it holds. To tie the handle, use <code>tie *$scalar</code> (with an explicit asterisk). The same applies to <code>tied *$scalar</code> and <code>untie *$scalar</code>.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="perldeprecation.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p><a href="warnings.html">warnings</a>, <a href="diagnostics.html">diagnostics</a>.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
